{if is_array($items) && count($items) > 0}
<div id="contextMenuContent">
	{foreach from=$items item=item}
		<div class="contextMenuButton">
			<a href="{$URL_RELATIVE}/bo/#{$item.href}" rel="{$item.label}">
				{icon name=$item.icon alt=$item.label title='' size="3120" class="contextMenuIcon"}
				{if $item.type}
				{assign var=type value=$item.type}
				{icon name='transparent.png' alt='' title='' size="3120" class="contextMenuPicto" height='20' width='31' style="background-image:url($URL_RELATIVE/themes/default/backend/medias/icons/3120/$type.png)"}
				{/if}
			</a>
		</div>
	{/foreach}        
</div>

{if !is_null($rightClickItems[0])}
<div class="contextMenu" id="myMenu2">
    <ul>
	{foreach from=$rightClickItems item=item}
		<li><a href="{$URL_RELATIVE}/bo/#{$item.href}" {if isset($item.class)}class="{$item.class}"{/if}>{icon name=$item.icon} {$item.label}</a></li>
	{/foreach}
    </ul>
</div>
{/if}

{/if}